<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php

class NewUploadList extends FillBase
{

    
    public function obtainNewUploadList($user_id, $limit = 20){
        $list =  UserFile::model()->findAllBySql("select * from ".Yii::app()->params['tablePrefix']."files where is_deleted!=1 and user_id=".$user_id." and file_type=0 order by created_at desc limit ".$limit);
        $data =  $this->filFillList($list);
        return $data;
    }
}
?>